"""
根据传入的名称以及config构建strategy
"""
from strategy.base_strategy import BaseStrategy


class StrategyFactory:
    @classmethod
    def create_service(cls, config):
        service = None
        if config["name"] == "base_strategy":
            service = BaseStrategy(config)

        if not service:
            print("init strategy service %s failed " % config["name"])
        return service

